﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using G.Web;
using G.WeiBo.WebAPI.Response;
using G.Net;

namespace G.WeiBo.WebAPI.Request
{
    public enum TopicType
    {
        Hourly,
        Daily,
        Weekly
    }
    public class GetTopicBtTypeRequest : IRequest<ResponseData<G.WeiBo.WebAPI.Domain.Topic[]>>
    {
        public TopicType TopicType { get; set; }
        public string GetURL()
        {
            string url = string.Empty;
            switch (TopicType)
            {
                case Request.TopicType.Hourly:
                    url = "trends/hourly.json";
                    break;
                case Request.TopicType.Daily:
                    url = "trends/daily.json";
                    break;
                case Request.TopicType.Weekly:
                    url = "trends/weekly.json";
                    break;
                default:
                    break;
            }
            return url;
        }

        public string HttpMethod()
        {
            return G.Net.HttpMethod.Get;
        }

        public System.Collections.Generic.IDictionary<string, string> GetParameters()
        {
            LocalDictionary parameters = new LocalDictionary();
            return parameters;
        }
    }
}
